const fs = require('fs')

const routerArr = []
const fileArr = fs.readdirSync(__dirname)

for (let fileName of fileArr) {
	fileName = fileName.replace(/\.js/, '')
	if (fileName.indexOf('route-') < 0)
		continue;
	routerArr.push(require(`./${fileName}`))
}

module.exports = routerArr